#!/bin/bash

if [ a$(echo $(ps ax | grep python | sed -n /usr/p) | cut -f7 -d' ') = arauth.py ]
then
	exit 0
fi
rauthdir=/usr/local/share/rauth
python_exec=/usr/bin/python

cd ${rauthdir}
export PYTHONPATH="$PYTHONPATH:${rauthdir}"
exec ${python_exec} -OO rauth.py
